package cn.com.wangluotongxin.merchants.service;

import cn.com.wangluotongxin.common.pojo.TenantUser;
import cn.com.wangluotongxin.merchants.dto.GoodsUnitDto;
import cn.com.wangluotongxin.merchants.form.GoodsUnitForm;
import cn.com.wangluotongxin.merchants.model.MerchantsGoodsUnit;
import cn.com.wangluotongxin.merchants.vo.GoodsUnitVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 商户管理-商品管理-单位 服务类
 * </p>
 *
 * @author AutoGenerator
 * @since 2024-06-26
 */
public interface IMerchantsGoodsUnitService extends IService<MerchantsGoodsUnit> {

    IPage<GoodsUnitVo> getPage(GoodsUnitDto dto);

    List<GoodsUnitVo> getList();

    void add(GoodsUnitForm form, TenantUser tenantUser);

    void enabled(Integer id, Integer isEnabled);
}
